﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;
using quizdb;

namespace TesteOnline
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            quizdb.QuizDb quiz = new quizdb.QuizDb(new MySqlConnection("Persist Security Info=False;server=localhost;database=quizdb;uid=root;server=localhost;database=quizdb;uid=root;pwd='';initial catalog=quizdb"));
            //var hotels = from h in quiz.MaterIA select h;
            //var ques = from h in quiz.QuestAO select h;
            //MaterIA mmm = new MaterIA() { Nome = "abc" };
            GridView1.DataSource = quiz.MaterIA;
            DataBind();


        }
    }
}
